#if 1
#include "stdio.h"

int main(){
	float a,b,c,max;
	scanf("%f,%f,%f",&a,&b,&c);
	max = ((a>b)?((a>c)?a:c):((b>c)?b:c));
	printf("MAX = %lf\n",max);
	return 0;
}
#endif
